+lsb (3.1-17) unstable; urgency=low
+
+ * Set FANCYTTY to a null string to cope with init scripts that for some
+ reason seem to use set -u. (Closes: #390085)
+
+ -- Chris Lawrence <lawrencc@debian.org> Fri, 29 Sep 2006 01:50:51 -0500
+
lsb (3.1-16) unstable; urgency=low
* Improve documentation of killproc(). (Closes: #384814)
#!/usr/bin/python
# lsb_release command for Debian
-# (C) 2005 Chris Lawrence <lawrencc@debian.org>
+# (C) 2005-06 Chris Lawrence <lawrencc@debian.org>
# This package is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
return [version]
+# This is Debian-specific at present
def check_modules_installed():
# Find which LSB modules are installed on this system
output = commands.getoutput("dpkg-query -f '${Version} ${Provides}\n' -W %s 2>/dev/null" % PACKAGES)
return distinfo
-def get_distro_information():
- distinfo = guess_debian_release()
-
- # Replace any info in /etc/lsb-release
+def get_lsb_information():
+ distinfo = {}
if os.path.exists('/etc/lsb-release'):
for line in open('/etc/lsb-release'):
line = line.strip()
if arg.startswith('"') and arg.endswith('"'):
arg = arg[1:-1]
distinfo[var] = arg
+ return distinfo
+def get_distro_information():
+ distinfo = guess_debian_release()
+ distinfo.update(get_lsb_information())
return distinfo
def main():